package org.example;

import org.example.Service.SysroleService;
import org.example.model.Sysrole;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Hello world!
 */
public class application {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        SysroleService sysroleService = ctx.getBean(SysroleService.class);
        Sysrole sysrole = sysroleService.findById(11);
        System.out.println(sysrole);
    }
}
